var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/demo1', function(req, res, next) {
    res.render('handlbars/demo1', { title: 'Handlbars' });
});

router.get('/demo2', function(req, res, next) {
    res.render('handlbars/demo2', {layout:null,title: 'Handlbars'});
});

router.get('/demo3', function(req, res, next) {
    res.render('handlbars/demo3', {layout:"app",title: 'Handlbars'});
});


router.get('/demo4', function(req, res, next) {
    res.render('handlbars/demo4',{
        link:"https://git.oschina.net/mahout/stoat",
        address:"<strong style='color:red;'>上海浦东</strong>",
        lujing:300,
        students:["小明","柳树","dream","小朱"],
        teachers:[{name:"keke",age:30,students:["a","b","c"]},{name:"kery",age:16},{name:"vico",age:20,students:["d","e","f"]}],
        data:{
            name:"stoat",
            time:"2015/12/12"
        }
    });
});


router.get('/demo5', function(req, res, next) {
    res.render('handlbars/demo5', {layout:"app",title: 'Handlbars'});
});



router.get('/demo6', function(req, res, next) {
    res.render('handlbars/demo6', {layout:"app",title: 'Handlbars',time:"2015/12/12",age:20});
});




module.exports = router;